<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>ZF OpenId Auth Application</title>
	<!-- OpenID Provider Selector -->
	<script type="text/javascript" src="<?php echo $this->baseUrl() ?>/js/jquery-1.3.2.min.js"></script>
	<link rel="stylesheet" href="<?php echo $this->baseUrl() ?>/openid-ps/openid-ps.css" />
	<script type="text/javascript" src="<?php echo $this->baseUrl() ?>/openid-ps/openid-ps-on-jquery.js"></script>
	<script type="text/javascript">	    
		var $openIdPs;
		
		$(document).ready(function() {
			// Create
			$openIdPs = new OpenIdProviderSelector(document.getElementById("openid_form"));
			$openIdPs.initialize();
		});
		
		$(window).unload(function() {
			// Dispose
			if ($openIdPs) {
				$openIdPs.dispose();
			}
		});
	</script>
</head>
<body>

<div>
<?php echo $this->status; ?>
</div>

<br />

<!-- OpenID Provider Selector -->
<form method="post" id="openid_form" class="openid-form">
	<input type="hidden" name="openid_action" value="login" /><!-- Zend Framework req. -->
	
	<fieldset>
    	<legend>Sign-in or Create New Account</legend>
    		
    	<div id="openid_provider_selector">
 		    <p>Click your <a href="http://openid.net/what/" target="new">OpenID</a> account provider:</p>
		    <div id="openid_providers" class="openid-providers">
		    	<div class="large-buttons"></div>
		    	<div class="small-buttons"></div>
		    </div>
			<div id="openid_provider_username" style="display:none">
				<p id="openid_username_label"></p>
				<div>
					<input id="openid_username" name="openid_username" type="text" value="" />
					<input id="openid_submit1" type="submit" value="Sign-in"/>
				</div>
			</div>						
		</div>
			
		<div id="openid_provider_input">
			<p>Or, manually enter your OpenID URL:</p>
			<table border="0" cellpadding="0" cellspacing="0">
				<tbody><tr>
					<td><input id="openid_identifier" name="openid_identifier" type="text" value="http://" /><!-- Zend Framework req. --></td>
					<td><input id="openid_submit2" type="submit" value="Sign-in" /></td>
				</tr></tbody>
			</table>
		</div>
			
		<div id="openid_provider_reg">
			Or, if you don't have an OpenID through any of the above, <b><a href="https://www.myopenid.com/signup?affiliate_id=">click here to sign up</a></b>!
		</div>				

		<noscript>
			<p>
				OpenID is service that allows you to log-on to many different websites using a single indentity.
				Find out <a href="http://openid.net/what/">more about OpenID</a> and <a href="http://openid.net/get/">how to get an OpenID enabled account</a>.
			</p>
		</noscript>
	</fieldset>
</form>
<!-- /OpenID Provider Selector -->

</body>
</html>